package com.lee.recyclerview523lfy.activity;

import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;

import com.lee.recyclerview523lfy.R;

/**
 * Created by Administrator on 2017/5/25.
 */

public class Register extends AppCompatActivity {

    private Button register;
    private Button back;

    private SharedPreferences preferences;
    final static String PREF_NAME="loginPref";


    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.register);


        back= (Button) findViewById(R.id.button_back);
        register= (Button) findViewById(R.id.button_registion);

        back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(Register.this,Welcome.class);
                startActivity(intent);
            }
        });

        register.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(Register.this,MainActivity.class);
                startActivity(intent);
            }
        });
    }

}
